package cn.edu.sjtu.dfa;

/**
 * return is an end point of a method
 * @author Seabert
 *
 */

public class Return extends Instruction{

	private Register ret = null;
	
	public Return(Register ret)
	{
		this.ret = ret;
	}
	@Override
	public String toString() {
		if(ret != null)
		return "Return v" + ret.getRegister();
		else return "Return void";
	}
	

}

